package com.yunhe.common.model.device;

import java.util.HashMap;

/**
 * 设备对象
 * @author liuronglei
 */
public class Device extends HashMap<String, Object> {
    public String getType() {
        return (String)this.get("type");
    }
    public Long getId() {
        return ((Number)this.get("id")).longValue();
    }
    public Long getCode() {
        return (Long)this.get("code");
    }
    public String getName() {
        return (String)this.get("name");
    }
    public String getTitle() {
        return (String)this.get("title");
    }
    public void setId(Long id) {
        this.put("id", id);
    }
    public void setCode(Long code) {
        this.put("code", code);
    }
    public void setName(String name) {
        this.put("name", name);
    }
    public void getTitle(String title) {
        this.put("title", title);
    }
}
